<template>
  <div>
<div class="footera">
  <span>`共{{data.totalCount}}条记录  第{{data.pageIndex}} /{{data.totalPage}} 页`</span>
  <div class="buttona">
      <div><button type="button"><span @click="nexFn">下一页</span></button></div>
    <div><button type="button"><span @click="upFn">上一页</span></button></div>
  </div>
</div>
  </div>
</template>
<script>
export default {
  props: ['data'],
  data () {
    return {
    }
  },
  methods: {
    nexFn () {
      // this.pageIndex++
      // console.log(this.data)
      this.$emit('next', 1)
    },
    upFn () {
      this.$emit('ipd', 1)
    }
  }
}
</script>
<style lang="scss" scoped>
.footera{
  display: flex;
  justify-content: space-between;
  background-color: #FFFFFF;
  height: 80px;
  text-align: center;
  line-height: 50px;

}
.footera span{
  font-size: 16px!important;
    color: #dbdfe5!important;
     margin-right: 10px;
    font-weight: 400;
    color: #606266;
    margin-left: 20px;
}
.buttona{
  display: flex;

    color: #606266;
    min-width: 30px;
    border-radius: 2px;

    div{
      margin-right: 20px;
    }
}
</style>
